<?php
namespace Index\Controller;
use Think\Controller;
use Index\Controller\CommonController;

class ProfileController extends CommonController {
    public function indexAction(){
    	$uid = I('session.uid');
    	$Model = M();
        $sql = "select face,username from user where id ='{$uid}'";
        $userInfo = $Model->query($sql);
        $userInfo = $userInfo[0];
        $this->assign('userInfo',$userInfo); 

		$this->display();	
    }

   
 	


}